PLC BLOG | RSLOGIX 500 timer BASIC
Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


lg-12 col-12 fb-share-button">

Share on Facebook

Share on twitter

Share on Whats-App

RsLogix 500 Timer

Timers and counters are output instructions that let you control operations based on time or number of events.Choose From These Timer and Counter Instructions.
Remember that the amount of time that you can time-out on a timer is limited by the total value that a preset address (16 bits) can hold (32767). If the time base is 0.01 seconds, this limits the preset time to 0.01 x 32767 = 327 seconds.

TON [Timer On-Delay]
TON instruction to turn an output on or off after the timer has been on for a preset time interval. This output instruction begins timing (at either one second or one hundredth of a second intervals) when its rung goes "true." It waits the specified amount of time (as set in the PRESET), keeps track of the accumulated intervals which have occurred (ACCUM), and sets the DN (done) bit when the ACCUM (accumulated) time equals the PRESET time.
As long as rung conditions remain true, the timer adjusts its accumulated value (ACC) each evaluation until it reaches the preset value (PRE). The accumulated value is reset when rung conditions go false, regardless of whether the timer has timed out.
If power is lost while a TON is timing but has not reached its preset value, the EN, and TT bits remain set , and the accumulated value (ACCUM) remains the same. This is also true if the processor changes from the REM Run or REM Test mode to the REM Program mode.
  • If the rung goes "false" (loses logical continuity) during the timing process, the accumulated value is reset, and the DN, EN, and TT bits all reset whether or not the timer has reached the PRESET value.
  • Warning! Timing could be inaccurate if JMP, LBL, JSR, or SBR instructions skip over the rung containing a timer instruction while the timer is timing.
  • Addressing Help:

    simple example of timer
    example 1
    + in this example timer start with start or reset of plc because no condition for start or stop timer. example 2
    + second example in this example timer start when start_timer input bit is set to 1. timer running for preset interval (10s). after complete timer preset value timer_DN bit is set to 1. if start timer input bit is set to 0 timer stop if again set to 1 timer start from begining.
    + use move instrunction to set timer preset value while your plc runing.you can also compare timer value by using any of the compare instunction.
    + use of all timer bit , timer enable bit is set to 1 while your timer was enable (EN), timer done (DN) bit set to 1 when preset value is equal to acumalated value. timer TT bit set to 1 while your timer was running.
    + in this example timer running continusly after complete preset value. timer running bit is depend on timer done bit.
    + COMPARING OF TIMER VALUE, we can compare timer value or use any integer mathematics instrunctions. in this example first move timer value or you can used direct timer (ACCUMALATED VALUE) AND COMPARE.


    download source code Zip format download source code download source code pdf